package com.woniu108.person.client;


import com.woniu108.carService.commos.model.Result;
import com.woniu108.valueAdded.form.ScoreRecordsForm;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(name="evaluate-server",path = "/evaluate")
public interface EvaluateClient {
    //通过接口文档调用服务接口获得result

    /**
     * 门店删除时，删除其评分信息
     * @param storeId 门店id
     * @return 布尔值
     */
    @GetMapping("/storeScore/delStoreScore/{storeId}.api")
    public Result<Boolean> delStoreScore(@RequestParam("storeId") Integer storeId);

    /**
     * 创建门店的评分信息
     * @param storeId 商品编号
     * @return boolean值
     */
    @GetMapping("/storeScore/createStoreScoreByStoreId/{storeId}.api")
    @ApiOperation("创建门店的评分信息")
    public Result<Boolean> createStoreScoreByStoreId(@RequestParam("storeId") Integer storeId);


}
